import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import V_Menu from '@/components/Menu'
import V_Kaijaing from '@/components/Kaijiang'
import V_Youhui from '@/components/Youhui'
import V_Goucai from '@/components/Goucai'
import V_Hemai from '@/components/Hemai'
import V_HemaiDetail from '@/components/HemaiDetail'
import V_SsqBet from '@/components/SsqBet'
import V_My from '@/components/My'
import V_SsqCheckBall from '@/components/SsqCheckBall'
import V_ZouShiTu from '@/components/ZouShiTu'
import V_SsqOpenList from '@/components/SsqOpenList'
import V_CqSscOpenList from '@/components/CqSscOpenList'
import V_CqsscBet from '@/components/CqsscBet'
import V_CqsscBar from '@/components/CqsscBar'
import V_CqsscCheckBall8 from '@/components/CqsscCheckBall8'
import V_CqsscCheckBall7 from '@/components/CqsscCheckBall7'
import V_CqsscCheckBall6 from '@/components/CqsscCheckBall6'
import V_CqsscCheckBall5 from '@/components/CqsscCheckBall5'
import V_CqsscCheckBall4 from '@/components/CqsscCheckBall4'
import V_CqsscCheckBall3 from '@/components/CqsscCheckBall3'
import V_CqsscCheckBall2 from '@/components/CqsscCheckBall2'
import V_CqsscCheckBall1 from '@/components/CqsscCheckBall1'
import V_CqsscCheckBall0 from '@/components/CqsscCheckBall0'
import V_SsqZst from '@/components/SsqZst'
import V_Login from '@/components/Login'
import V_Register from '@/components/Register'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'Hello',
    //   component: HelloWorld
    // },
    {
      path: '/login',
      name: 'login',
      component: V_Login
    },
    {
      path: '/register',
      name: 'register',
      component: V_Register
    },
    {
      path: '/goucai',
      name: 'goucai',
      component: V_Goucai
    },
    {
      path: '/hemai',
      name: 'hemai',
      component: V_Hemai
    },
    {
      path: '/hemaiDetail/:id',
      name: 'hemaiDetail',
      component: V_HemaiDetail
    },
    {
      path: '/kaijiang',
      name: 'kaijiang',
      component: V_Kaijaing,
    },
    {
      path: '/zoushitu',
      // name: 'zoushitu',
      component: V_ZouShiTu,
      // children: [
      // {
      //   path: 'ssqZst',
      //   component: V_SsqZst
      // }
      // ]
    },
    {
      path: '/zoushitu/ssqZst',
      // name: 'zoushitu',
      component: V_SsqZst
    },
    {
      path: '/kaijiang/ssqOpenList',
      name: 'ssqOpenList',
      component: V_SsqOpenList
    },
    {
      path: '/kaijiang/cqSscOpenList',
      name: 'cqSscOpenList',
      component: V_CqSscOpenList
    },
    {
      path: '/youhui',
      name: 'youhui',
      component: V_Youhui
    },
    { 
      path: '/ssqBet', 
      component: V_SsqBet,
      children: [
        { 
          path: '', 
          component: V_SsqCheckBall 
        },
        { 
          path: '13',
          name: '13',
         component: V_My 
        },
        { 
          path: 'ssqCheckBall',
          name: 'ssqCheckBall',
          component: V_SsqCheckBall 
        }
      ]
    },
    {
      path: '/cqsscBet', 
      component: V_CqsscBet,
      children: [ 
        { 
          path: '3',
          name: '3',
         component: V_My 
        },
        { 
          path: 'cqsscBar',
          // name: 'cqsscBar',
          component: V_CqsscBar,
          children: [
            { path: '8',component: V_CqsscCheckBall8},
            { path: '7',component: V_CqsscCheckBall7},
            { path: '6',component: V_CqsscCheckBall6},
            { path: '5',component: V_CqsscCheckBall5},
            { path: '4',component: V_CqsscCheckBall4},
            { path: '3',component: V_CqsscCheckBall3},
            { path: '2',component: V_CqsscCheckBall2},
            { path: '1',component: V_CqsscCheckBall1},
            { path: '0',component: V_CqsscCheckBall0},
            { path: '',component: V_CqsscCheckBall6 }
          ]
        }
      ]
    },
  ]
})
